convert extension to lowercase when streaming image