Refactored image caption overlay