uploads jpeg files in photo page