added filetype handling for short and color images