Fixed jpg label printing issue.
Now the jpg label prints but it doesn't fit to the printer page size.
Previously it didn't print because window.print() would fire before the image in the page loaded.