added the padding to last image