Write files in binary mode, use photo title as file name - use file extention - don't presume it's a jpeg