Resized images and added pagination code