Fixed dead image path generation

Fixed the fullImageUrl getter logic

This will fix the issues JENKINS-16868 and JENKINS-15948