fix post form's content type; add support for image/png and image/ppm.