Moved library(managing pictures) to lib