function for add image; some padding