<% var w = width || imgdata.bounds.right; %> <% var h = height || imgdata.bounds.bottom; %>