Sort out image rendering