Fixed image rendering. Now working as intended