use require_relative when possible and also support getting image results