Switch from OPEN_DOCUMENT to GET_CONTENT for gallery picker. Also fix bug #66, which was caused by a math error