LPS-43148 validate extensions in the image uploader