reset thumbnail function migrated from the forms page to the images page