Adding back previous hvfransesco functionality, including import png/jpg as a layer and dropping layer at cursor (needs improvement)