Added overflow support for image.