Change the way it generate file path and url for the thumbnails image.