Hello,
Thanks for the response, I was wondering if the above code has been tested on legenda theme?
src="<?php echo etheme_get_image( $imgId, $mainWidth, $mainHeight, $crop ) ?>"
add this alt="<?php echo get_post_meta($imgId, '_wp_attachment_image_alt', true)?>"