Bugfix the order of the  image reading