Image drawing & game loop example