added extensions for uploaded images