Made image crop more efficient. Added memory not enough protection for dealing with big images.