Used JSON-decoded setting values
Added support for cropping of images