Fixed image resizing in Edit mode