Using rest api for image thumbnails #5915