Revert "Resize the image in background"

This reverts commit e9cc2e9d404f785ffe395483ce036e33c4d6237a.