added color and scale support to ImageBatch and other improvements