image overlaying function created, need to debug opacity