Fixed a bug where cropping twice would not work
Added config option for enabling conversion to lossless format (PNG) when storing variations