Adding default image handling to media pattern