Add support for crude image replacement