Fix for Image::resize() and filemanager/photo helper