Yep, what you did is perfectly fine. I usually add a bit of sterile water to the jar with the yeast, just to help everything settle out and make for easy re-pitching into a starter.
From the looks of your pic, it seems like you did harvest at the proper time. Unbeknownst to most homebrewers, top cropping yeast does not normally involve scraping off whatever is on top of the fermenting beer, at any given time. Ideally, you want to skim off the first krausen, or dirt as the pros call it, around 24hr mark and then wait to top crop until the second krausen arrives right around the 48hr mark or whenever the beer is 50% fermented. Doing this ensures you are harvesting the healthiest yeast with the same fermentation characteristics of the original pitch. Also, you are getting the yeast with the least amount of bacteria/contaminates.