slight mods to image positions and padding