Simple Improvements

Compressed images and added result into variables to improve the code.