made _pack_image always specify image/jpeg because mimetype isn't guessing correctly