Express middleware for dynamic placeholder images