Refactored picture upload for other question formats.