Execute perfect square cropping and resizing before caching