Neural-network based system for assessing image quality