Hey,
I found out the solution.
Use this instead:
FSlateBrush mybrush = imageBG->Brush;
mybrush.SetImageSize(FVector2D(size, size));
imageBG->SetBrush(mybrush);
it sets the size of the image through the brush, and this actually worked for me.