move file stuff into subclass, add rewind
move file stuff into subclass, add rewind

jcupitt/libvips,lovell/libvips,jcupitt/libvips,lovell/libvips,lovell/libvips,lovell/libvips,jcupitt/libvips,jcupitt/libvips