fix problem with draw before loading image