updating to render image correctly for ios user space.