Fix the implementation of ranges in (DefaultImage) block