Draw pictures using javascript