fix issues with borders on image