added crop image, improved editor performance