FIX: wrap while around write when save file. change image's pattern