Replaced deprecated camera code and solved invalid exercise page problem