client side rotating & cropping working