Bug fix

Added code to prevent elements from collapsing when image is loaded