First step towards proper image validation, with notes