Custom change: cropping modal window should close only in case of ajax success