Wrote the scramble program for photo compression