Error thrown

Call to undefined function image_constrain_size_for_editor()