Move cPickle img_ignore into the function itself