testing loader function from images on canvas