Loading images bugfix