mostly working insert graphics