fixes filters for cropped images

Filters are not working properly if the image has crop set. These changes make them work as well.