added suport to save images