improve code to handle Vips Exercises