Fix expanding for loaded images