loadImages in resize works now