using layout to draw pics