2 self-hostable options with public code.
Image editor for photo retouching and compositing
Digital painting and illustration program