Refactored and tested Image Class.