image: put layer functions into a namespace

Put all layer fucntions/data into image namespace.  I had to add some
wrappers to make everything work.
1 file changed