add spec tests for buffer load

the new png and jpg load from buffer paths now have spec tests