Added few features for cropping images before applying them