lockscreen: fix custom lockscreen image

Jesus H christ.  This code could have been a lot simpler.

Change-Id: I2516cc6e8341c2198e4e5110c21cdba4a2fb178a