Fix for imageEditor and preview resizing