Utilizing Image Transforms and Diffusion Models for Generative Modeling of Short and Long Time Series