Improved the game loop mechanic, added Image constructor