added scaling of image for thumbnail tag