CHANGED:using maxWidth and maxHeight for id_image_editor