set size of image and implicit span background