I don't see why you are creating your own picture format. There are plenty of good ones out there. JPG are compressed, but lose if you zoom in close enough.
RAW is the newest format out there. I saw it demo'd the other night.
It is loseless, and a little bigger than jpg. Newer digital cameras use it.