fixes  #3194
Merge pull request #3241 from dotCMS/issue-3194-resizing-image-to-the-actual-image-size-does-not-always-work

fixes  #3194