Resize images for Masonry