Move logic to get image (either new instance or cached one) from utils.h to image.c

Move logic function to get either a new instance for an image or a cached one to implementation of XfdashboardImage like we did for XfdashboardWindowContent. This reduces also the number of dependencies to utils.h.