standarize_image added new option to crop images into square patches