adding jpgs and error trapping