Added patch view and moved the images to their own php file