Image extention validation added.