Configure with png and jpeg libs