Created API for image recropping