resized images and take of padding on main image