fix image resizing issue
Merge pull request #2061 from dimagi/fix_cache_resizing

fix image resizing issue