draw line onto dynamic image