small trick to remove .jpg ext when listing files