Convert avatar to JPEG