Fixed ImageWriteException