refactoring love.graphics.newImage out of the game loop