actually fixes bad image ref