Fixed file access issues

Fixed issues with accessing the input photo for the edge detection and
image processing.