Fix issue with image rendering