Simplified the API to accept sprite map data in the constructor