Fixing imageRendering mode bug and removing the auto contentMode override