Finished the pieces problem, rotate and flip work perfectly, and image doesn't lose shape. Sending info over server is also correct