Bug Fix

Fixed error when the script tried to get target element size before the
element was fully loaded (especially images)