Added external palette support to BAM converter