Separated offset logic for text and image sprites.