Adding smart resize and crop method to Image_lib library.