Added Padding Code to Images