This needs to be redesigned. probably something like this:

~~~php
array(
    'image' => 'src of image',
    'caption' => 'HTML content within the caption div'
    'options' => array(..item container attributes...)
    'imageOptions' => array(...image tag attributes...)
    'captionOptions' => array(...caption container options...)
)
~~~