Added support for ordering images