updated to use image plugin