"Can't convert from function to image" error.... why?