Devices for maskless lithography