Simplified initializeSprite method by splitting