fix lightbox sizing while loading image

use same code as for image component to dynamically set size using inline styles.
Refactor this code into own helper so it can be used from both components
Merge remote-tracking branch 'github/master'
remove log file