Moved img creation to head of function
Moved img creation to head of function

arschmitz/caman-dist-only,meltingice/CamanJS,rn2dy/CamanJS,purposeindustries/CamanJS,mcanthony/CamanJS,purposeindustries/CamanJS,prashen/CamanJS,mcanthony/CamanJS,mcanthony/CamanJS,meltingice/CamanJS,prashen/CamanJS,ckfinder/CamanJS,meltingice/CamanJS,rn2dy/CamanJS,prashen/CamanJS,rwaldron/CamanJS,rn2dy/CamanJS,ckfinder/CamanJS,rwaldron/CamanJS,ckfinder/CamanJS