Optimized with ALAsserts for big images