Image triggered backlash from across the political spectrum with the president eventually deleting the post