removed padding, saved images to local file