In new compose window of Gmail when you drag photo to compose window by default photo is added in the body of the email. But many time you want to attach photo as attachment. You can do it by 2 ways one is by selecting attach file and do it manually. The easiest way is by dragging image to format bar. Check out the image below for better understanding.