fix jpeg image for user portrait