Adding code for plotting pixel positions