Moved is_valid_flavor() and is_valid_image() to challenge1