added render function for sprite-batch