Fixed insert, select and delete image thumbnails