made different image rendering functions for performance testing