image resize fixes