#861 Fixed image resizing / crop on Azure / Amazon