Changed controller for images and case_log to redirect to the list when the url have an invalid id