fixed center problem when cropping