mod: rewrite to a class
mod: rework save to gallery, with failed/success callbacks