Add debug mode to test Retina image replacement