adding split to images and fixing bug in recolor