changed picture saving methodology