Crop Image Bug Fixed

Fix some bugs