Corrected paperfold implementation with custom images