Add transform_ function to resize then crop images