try-catch on save file (imwrite) added