Added image rendering in thread