implemented quality in image configuration