Cleanup image references