last adjust to image size