[comments] fixed captcha url; [gallery] added support for uploading jpeg files