Feature/lending groups

remove this, don't call the function if $image is empty