Building Canvas Image creation code