Custom data viewer with dynamic image size is possible?

Hi,
İs there any one who managed to use custom data viewer with dynamic image size? custom data viewer shows images very fast but unfortunately I could not find a way to make its size dynamic…There are long spaces between rows…
Thanks…