Fix bug with loading image without src in firefox