removed loadimages from global