Validation, Image tools

Improvements on image tools, and improved validation