Fixing image insertion