get screenshot to display correctly