got things working with callbacks so that loading images doesn't potentially break everything