changing dimensions of serialized image.