fix issue #140 - "key"s ending with .jpg/.png might confuse the filetype decoder