adjust the transparency index after successful optimize
skip transparency block if transparent color is not used after optimize