finish the function of save the picture as more type