reading and saving cv imgs