Added a method to control when a MyResizableImage will resize.