move picture calculation into class
partion apply form