Fixing memory leak with background image

latest commit 6bcde66cdd
@Torivon authored