Probably you are saving your file without alpha/transparency and that square around it is most likely your background from paining (edit: lol is that a word? pain+ing? - painting i meant) is application.
as Savvy001 asked, are you saving your file as jpg or png?
If jpg you won't have transparency. Have to use something that support alpha - png, tga...