Drawing multiple layers in 1 function