add insert image function