Fixed errors

Fixed error with application startup. Also, came across unhandled image
file extension and added logic to accommodate.