Saving bitmap and vector graphics