Fixes image rendering