Update for DEZ
Prevent resizing image twice