Locking immage file to avoid partial images
error
Resolving a warning
Debug informations for locking functions
New uinMessage function with output truncated