Resolved 24.5 micron emission from massive young stellar objects