fix uninitialized FILE var bug
[WIP] retreiving images from Opal