Gallery FIle I/O

Should be good with file stuff