fixes image resize