Yes that is fine for creating a thumnailed image (although you may want to just save the thumbnail directly rather than assigning it back to the original object). Why do you ask? Are you having performance problems? Or are you not getting what you expected?