fixed new image size problem