handling the custom share image if present