working correct dimensions for the image thumbnails