added in check to not reload same image for thumbnails