Writing and Clearing works, Reading has slight problem

Reading currently returns the entire file; it should only return the image ID at the given position.