Cleanup in the code - Optimization

Opmized all code, got rid of unesscesary code and split _images into
smaller modules