fixes some image rendering