Fixes to CreateImageLink so that it will work on the frontend.