Fixed bug when cropping images from collections