Added support for decimated images