added jpeg, png selector
added quality settings for jpeg
fixed small bug (no image)