update dimension of image formed.