modigied validation to accept image files with CAPITAL letters in extenssion