fixed image display and removed unneeded mime type