Fix bug in image dimension.