Script to add margin to image