GenerateImage function, nothing on screen yet though