fix image generation (redmine #2150)

Fixed prior preview image generation see <a href="https://ebi-forecast.igb.illinois.edu/redmine/issues/2150">redmine #2150</a>