Prime Minister's 'shoegate' photo uploaded by mistake, department says