Fixes invalid image reference