fixed image constructor to work with real OF