Added save function (needs to trim image first)